<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/11
 * Time: 14:08
 */
define('HOST','localhost');
define('USER','root');
define('PWD','');
define('DATABASE','love');
define('CHAREST','utf8');
$link = mysqli_connect(HOST,USER,PWD) or die('数据库连接失败');
mysqli_select_db($link,DATABASE);
mysqli_set_charset($link,CHAREST);